<?php /* Smarty version 2.6.18, created on 2017-01-04 17:21:34
         compiled from classstudent/classstudent.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
      <!--树状图-->
      <section class="col-lg-2 connectedSortable" style=" padding-right:0px; margin-bottom:10px;">
           <div class="sidebar" style="background-color:#fff; padding-bottom:0px;">
         <ul class="sidebar-menu" id="chan">
	<?php $_from = $this->_tpl_vars['grade_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
		<li class="treeview <?php if ($this->_tpl_vars['value']['grade_id'] == $this->_tpl_vars['class_data']['grade_id']): ?>active<?php endif; ?>">
		  <a href="#">
			<i class="glyphicon glyphicon-align-left"></i> <span><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</span> <i class="fa fa-angle-left pull-right"></i>
		  </a>
			  <ul class="treeview-menu" style="background-color:#fff;">
			  <?php $_from = $this->_tpl_vars['value']['class_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
				<li <?php if ($this->_tpl_vars['k'] == $this->_tpl_vars['class_data']['class_id']): ?>class="active"<?php endif; ?>><a href="index.php?a=classstudent.classstudentlist&class_id=<?php echo $this->_tpl_vars['k']; ?>
"><i class="fa fa-angle-right"></i><?php echo $this->_tpl_vars['v']; ?>
</a></li>
			  <?php endforeach; endif; unset($_from); ?>
			  </ul>
		</li>
	 <?php endforeach; endif; unset($_from); ?>
	 <li class="treeview"><a href="index.php?a=classstudent.studentlist"><i class="glyphicon glyphicon-align-left"></i>未分班学生</a></li>
  </ul>
		</div>
        </section>
        <!--树状图结束-->
        <section class="col-lg-10 connectedSortable">
         <div class="box box-default box-solid">
            <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    <span class="fa fa-list" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title"><?php echo $this->_tpl_vars['class_data']['class_name']; ?>
学生列表</p>
                </div>
                <div class="box-body">
                     <div class="col-md-3 form-group" style="padding:0;">
                        <label class="col-sm-3 control-label text-right" for="inputPassword3" style="padding-right:0; padding-left:0; font-weight:500;"> 姓名： </label>
                        <div class="input-group col-md-9 col-xs-12">
                           <input type="text" class="form-control" name="student_name" value="<?php echo $this->_tpl_vars['student_name']; ?>
">
                        </div>
                      </div>
                      <div class="col-md-3 form-group" style="padding:0;">
                        <label class="col-sm-3 control-label text-right" for="inputPassword3" style="padding-right:0; padding-left:0; font-weight:500;"> 学号： </label>
                        <div class="input-group col-md-9 col-xs-12">
                           <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['student_no']; ?>
" name="student_no">
                        </div>
                      </div>
					  <?php if ($this->_tpl_vars['class_id'] != ''): ?>
                      <div class="col-md-3 form-group" style="padding:0;">
                        <label class="col-sm-3 control-label text-right" for="inputPassword3" style="padding-right:0; padding-left:0; font-weight:500;"> 座号： </label>
                        <div class="input-group col-md-9 col-xs-12">
                           <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['divide_num']; ?>
" name="divide_num">
                        </div>
                      </div>
					  <?php endif; ?>
					  <?php if ($this->_tpl_vars['class_id'] == ''): ?>
					  <input type="hidden" name="a" value="classstudent.studentlist">
					  <?php else: ?>
					  <input type="hidden" name="a" value="classstudent.classstudentlist">
					  <?php endif; ?>
					  <input type="hidden" name="class_id" value="<?php echo $this->_tpl_vars['class_id']; ?>
">
                      <button type="submit" class="btn btn-success" style="margin-left:8px;">查 询</button>
                
                
                     <table class="table table-bordered table-striped"  id="mytable">
                            <thead>
                                    <tr style="background-color:#5fb2dc;">
									<?php if ($this->_tpl_vars['class_id'] != ''): ?>
                                        <td>座号<!-- <i class="fa fa-sort-amount-asc"></i> <i class="fa fa-sort-amount-desc"></i>--></td>
										<?php endif; ?>
                                        <td>姓名</td>
                                        <td>性别</td>
                                        <td>学号 
										<!--<a href="index.php?a=classstudent.classstudentlist&student_num=asc">
										<i class="fa fa-sort-amount-asc"></i>
										</a>
										<a href="index.php?a=classstudent.classstudentlist&student_num=desc">
										<i class="fa fa-sort-amount-desc"></i>
										</a>-->
										</td>
                                        <td>学籍号
										<!--<a href="index.php?a=classstudent.classstudentlist&student_school=asc">
										<i class="fa fa-sort-amount-asc"></i>
										</a>
										<a href="index.php?a=classstudent.classstudentlist&student_school=desc">
										<i class="fa fa-sort-amount-desc"></i>
										</a>-->
										</td>
                                        <td>出生日期</td>
                                        <td>家庭地址</td>
                                        <td>联系电话</td>
                                    </tr>
                            </thead>
                            </tbody>
							 <?php $_from = $this->_tpl_vars['classstudent_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
									<?php if ($this->_tpl_vars['class_id'] != ''): ?>
                                        <td><?php echo $this->_tpl_vars['value']['student_seat']; ?>
</td>
									<?php endif; ?>
                                        <td><?php echo $this->_tpl_vars['value']['student_name']; ?>
</td>
                                        <td><?php if ($this->_tpl_vars['value']['student_sex'] == 1): ?>男<?php else: ?>女<?php endif; ?></td>
                                        <td><?php echo $this->_tpl_vars['value']['student_no']; ?>
</td>
                                        <td><?php echo $this->_tpl_vars['value']['student_school']; ?>
</td>
                                        <td><?php echo $this->_tpl_vars['value']['student_birth']; ?>
</td>
                                        <td><?php echo $this->_tpl_vars['value']['student_addr']; ?>
</td>
                                        <td><?php echo $this->_tpl_vars['value']['student_tel']; ?>
</td>
                                    </tr>	
                             <?php endforeach; endif; unset($_from); ?>       
                             </tbody>	
                        </table> 
				</div><!--box-body -->
              </form>
			  <div class="box-footer">
			  <?php echo $this->_tpl_vars['page']; ?>

			  </div>
           </div><!--box box-default box-solid-->
        </section>   
      </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
 